//
//  UIView+NightVersion.m
//  FlowLayout
//
//  Created by Fuzzie Liu on 15/10/28.
//  Copyright © 2015年 Fuzzie Liu. All rights reserved.
//

#import "UIView+NightVersion.h"

@implementation UIView (NightVersion)

- (void)nightVersion
{
    self.backgroundColor = UIColorFromRGB(DefaultColor);
}

- (BOOL)ignoreChangeColor
{
    NSArray *ignoreViews = [[NSUserDefaults standardUserDefaults] objectForKey:@"IgnoreViews"];
    BOOL ignore = [ignoreViews containsObject:NSStringFromClass([self class])];
    return ignore;
}

@end
